<template>
  <view class="flex mx-4 mb-[50rpx]">
    <wd-img :src="user.avatar" :round="true" width="70rpx" height="70rpx"></wd-img>
    <view class="ml-[20rpx]">
      <view class="text-[#0D0D0D] text-sm">{{ user.nickname }}(ID:{{ user.id }})</view>
      <view class="mt-1 text-[#646466] text-xs"><text v-if="showTimeLabel">时间：</text>{{ user.create_time }}</view>
    </view>
    <slot></slot>
  </view>
</template>

<script setup>
defineProps({
  user: {
    type: Object,
    required: true
  },
  showTimeLabel: {
    type: Boolean,
    default: true
  }
})
</script>

<style lang="scss" scoped></style>
